# -*- coding: utf-8 -*-
# @Time : 2021/6/14 3:37
# @Author : lanjy
# @Email : wayne_lau@aliyun.com
# @File : 计算1到100的总和.py
# @Project : python_learn

n = 100

sum = 0
counter = 1
while counter <= n:
    sum = sum + counter
    counter += 1

print("1 到 %d 之和为: %d" % (n, sum))


def add(param, param1):
    c = param + param1
    return c

print(add(1,2))

